package cn.gok.code.entity;

import java.util.Date;

/**
 * @ClassName Student
 * @Description TODO
 * @Author HP
 * @Date 17:03 2022/7/26
 * @Version 1.0
 **/

public class Student extends Entity{

    private Long sid;
    private String sname;
    private Integer age;
    private char sex;
    private Long snum;
    private Long cid;

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public Long getSnum() {
        return snum;
    }

    public void setSnum(Long snum) {
        this.snum = snum;
    }



    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Student() {
    }

    public Student(Long sid, String sname, Integer age, char sex, Long snum, Long cid) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.sex = sex;
        this.snum = snum;
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", snum=" + snum +
                ", cid=" + cid +
                '}';
    }
}
